﻿/*
 * [程序名称] Weather auto sender
 * [参考资料] http://code.google.com/p/auto-weather-sender/ 
 * [开源协议] Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.joe.weather;

import android.app.Application;

public class WeatherApplication extends Application
{
	// Key of cell-phone number in sharepreference file
	public static final String CELLPHONE_NUMBER = "CELLPHONE_NUMBER";
	
	// Key of send time everyday in sharepreference file
	public static final String SEND_AT_HOUR = "SEND_AT_HOUR";
	
	// default send at hour, 20
	public static final int DEFAULT_SEND_AT_HOUR = 20;
	
	// The flag whether the system will send weather information repeatedly
	public static final String REPEATFLAG = "REPEAT_SEND_WEATHER_FLAG";
	
	private boolean weatherServiceRepeatFlag = false;
	
	private boolean firstTimeLaunchSystem = true;
	
	public boolean isWeatherServiceRepeatFlag()
	{
		return weatherServiceRepeatFlag;
	}

	public void setWeatherServiceRepeatFlag(boolean weatherServiceRepeatFlag)
	{
		this.weatherServiceRepeatFlag = weatherServiceRepeatFlag;
	}
	
	public boolean isFirstTimeLaunchSystem()
	{
		return firstTimeLaunchSystem;
	}

	public void setFirstTimeLaunchSystem(boolean firstTimeLaunchSystem)
	{
		this.firstTimeLaunchSystem = firstTimeLaunchSystem;
	}

	public static String destNumber = "13416342557";
//	public static String destNumber = "18665618068";
}
